package top.shenluw.springdemo.zuul;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Shenluw
 * 创建日期：2019/4/2 16:40
 */
@SpringBootApplication
@EnableDiscoveryClient
@RestController
public class Demo2 {
    public static void main(String[] args) {
        SpringApplication.run(Demo2.class, args);
    }

    @GetMapping("/**")
    public String home() {
        return "demo2: " + System.currentTimeMillis();
    }

}
